package com.yc.videocache;

/**
 * Stores source's info.
 */

/**
 * SourceInfo
 *
 * @since 2021-05-10
 */
public class SourceInfo {
    /**
     * url
     */
    public final String url;
    /**
     * url
     */
    public final long length;
    /**
     * url
     */
    public final String mime;

    /**
     * SourceInfo
     *
     * @param url
     * @param length
     * @param mime
     */
    public SourceInfo(String url, long length, String mime) {
        this.url = url;
        this.length = length;
        this.mime = mime;
    }

    @Override
    public String toString() {
        return "SourceInfo{"
            +
            "url='" + url + '\''
            +
            ", length=" + length
            +
            ", mime='" + mime + '\''
            +
            '}';
    }
}
